package com.topgay.dao.board;

/*
 * 처음 테스트 할때 만든 컨트롤러입니다. 지워도 무방합니당
 * 
 * by 한지수
 * 
 * 20141029_01
 * 
 */

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.topgay.domain.TestMember;

@Repository
public class TestDAO {
	
	@Autowired
	private SqlSessionTemplate session;
	
	public int insertMember(TestMember member){
		return session.insert("board.insertMember", member);
	}
	
	public TestMember selectMember(String name){
		return session.selectOne("board.selectMember", name);
	}
}
